package version

import (
	"fmt"
	"os"
	"runtime"
)

var (
	BuildVersion string
	BuildTime    string
	GoVersion    = fmt.Sprintf("%s %s", runtime.Version(), runtime.GOARCH)
	GitCommit    string
)

func Version() {
	fmt.Printf("Version: %s\nBuildTime: %s\nGoVersion: %s\nGitCommit: %s\n", BuildVersion, BuildTime, GoVersion, GitCommit)
	os.Exit(0)
}
